package me.zhengjie.modules.system.domain.vo

import cn.hutool.core.bean.BeanUtil
import cn.hutool.core.bean.copier.CopyOptions
import com.fasterxml.jackson.annotation.JsonTypeName
import me.zhengjie.common.utils.JacksonUtil
import me.zhengjie.modules.system.service.dto.DictDTO
import org.apache.commons.lang3.builder.ToStringBuilder


/**
 * 修改密码的 Vo 类
 * @author Kuki Wu
 * @date 2019年7月11日13:59:49
 */

@JsonTypeName("UserPassVo")
data class UserPassVo (
    var oldPass: String? = null,
    var newPass: String? = null
){
    annotation class Update

    fun copy(source: UserPassVo?) {
        BeanUtil.copyProperties(source, this, CopyOptions.create().setIgnoreNullValue(true))
    }
}